import request from '@/utils/request'

// 查询流向信息列表
export function listFlow(query) {
  return request({
    url: '/system/flow/list',
    method: 'get',
    params: query
  })
}

// 查询流向信息详细
export function getFlow(flowDirectionId) {
  return request({
    url: '/system/flow/' + flowDirectionId,
    method: 'get'
  })
}

// 新增流向信息
export function addFlow(data) {
  return request({
    url: '/system/flow',
    method: 'post',
    data: data
  })
}

// 修改流向信息
export function updateFlow(data) {
  return request({
    url: '/system/flow',
    method: 'put',
    data: data
  })
}

// 删除流向信息
export function delFlow(flowDirectionId) {
  return request({
    url: '/system/flow/' + flowDirectionId,
    method: 'delete'
  })
}

// 查询流向信息列表
export function listFlowOption() {
  return request({
    url: '/system/flow/listoption',
    method: 'get',
//    params: query
  })
}
